package com.nhxcz.bigdataweb.mapper;

import com.nhxcz.bigdataweb.entity.Move;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
@Repository
public interface MoveMapper {

    @Select("SELECT * FROM move_analysis ORDER BY time desc limit 5")
    ArrayList<Move> move_analysis();

    @Select("SELECT * FROM move_analysis ORDER BY time desc limit 5")
    ArrayList<Move> fresh();

    @Select("DELETE FROM move_analysis ORDER BY time desc limit 5")
    ArrayList<Move> delete();
}
